function ValueResults=checkEditorAffiliation(ValueResultsAffiliation,VecAffiliationAuthors)

TestTemp=0;
if size(ValueResultsAffiliation,2)>1&&size(VecAffiliationAuthors,2)>=1
    TestTemp2=0;
    n3=1;
    while n3<=size(ValueResultsAffiliation,2)-2&&TestTemp2==0
        if strcmpi(ValueResultsAffiliation(1,n3:n3+2),'Uni')==1
            TestTemp2=n3;
        end
        n3=n3+1;
    end
    TestTemp3=0;
    TestTemp4=0;
    for n4=1:size(VecAffiliationAuthors,2)
        ValueAffiliationAuthors3=VecAffiliationAuthors{1,n4};
        ValueTemp5=size(ValueAffiliationAuthors3,2);
        n3=1;
        while n3<=size(ValueResultsAffiliation,2)-ValueTemp5+1&&TestTemp3==0
            if strcmpi(ValueResultsAffiliation(1,n3:n3+ValueTemp5-1),ValueAffiliationAuthors3)==1
                TestTemp3=n3;
                if VecAffiliationAuthors{2,n4}>0
                    TestTemp4=VecAffiliationAuthors{2,n4};
                end
            end
            n3=n3+1;
        end
    end
    if TestTemp3>0
        if TestTemp2>0&&TestTemp4>0
            TestTemp=1;
        else
            if TestTemp2==0&&TestTemp4==0
                TestTemp=1;
            end
        end
    end
end
ValueResults=TestTemp;